from agents import Agent, Runner

import study.Openai_Config as config

config.set_client()

#
agent = Agent(
    name="Poet Assistant",
    instructions="你是一个擅长写俳句的助手，根据用户给的主题写一首五-七-五的俳句。"
)


def test():
    # 运行 Agent
    result = Runner.run_sync(agent, "写一首关于编程的俳句")
    print(result.final_output)
